import request from "@/utils/request";
// -------------学习------------

// 查询学习角色列表  /assess/exam/myRoleList
export const getExamMyRoleListApi = (params) => {
  return request({
    url: `/assess/exam/myRoleList`,
    method: "get",
    params,
  });
};

// 获取这个角色下的所有科目 /assess/examResult/listDefault
export const getExamResultListDefaultApi = (params) => {
  return request({
    url: `/assess/examResult/listDefault`,
    method: "get",
    params,
  });
};

// 勾选自定义角色  /system/role/checkStudy
export const getRoleCheckStudyApi = (params) => {
  return request({
    url: `/system/role/checkStudy`,
    method: "put",
    params,
  });
};

// 取消勾选自定义角色  /system/role/uncheckStudy
export const getRoleUnCheckStudyApi = (params) => {
  return request({
    url: `/system/role/uncheckStudy`,
    method: "put",
    params,
  });
};

// 修改考试状态 /assess/examResult/edit
export const editExamResultApi = (data) => {
  return request({
    url: `/assess/examResult/edit`,
    method: "put",
    data,
  });
};
